package com.lagou.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product")
@ToString
@Document(indexName = "lagou",type = "product",shards = 1,replicas = 1)
public class Product implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String name;
    private double price;
    private String flag;
    private String goodsDesc;
    private String images;
    private int goodsStock;
    private String goodsType;



}
